﻿namespace GoodAdmin.System;


public class ConfigAddInput : SysConfig
{
    /// <summary>
    /// 配置键
    /// </summary>
    [Required(ErrorMessage = "configKey不能为空"),MaxLength(64)]
    public override string ConfigKey { get; set; }

    /// <summary>
    /// 配置值
    /// </summary>
    [Required(ErrorMessage = "ConfigValue不能为空"), MaxLength(64)]
    public override string ConfigValue { get; set; }
}

public class ConfigUpdateInput : ConfigAddInput
{
    /// <summary>
    /// Id
    /// </summary>
    [Required(ErrorMessage = "Id不能为空")]
    public override long Id { get; set; }
}

public class ConfigPageInput : BasePageInput
{
    public string Category { get; set; }
}

public class SystemConfigUpdateInput
{
    /// <summary>
    /// 默认密码
    /// </summary>
    public string Sys_Default_Password { get; set; }
    /// <summary>
    /// 是否启用登录验证码
    /// </summary>
    public string Sys_Captcha { get; set; }
    /// <summary>
    /// 密码错误次数
    /// </summary>
    public string Sys_password_wrong_number { get; set; }
    /// <summary>
    /// 密码错误次数达上限之后策略
    /// </summary>
    public string Sys_password_wrong_strategy { get; set; }
    /// <summary>
    /// 延时登录时间
    /// </summary>
    public string Sys_login_delay_time { get; set; }
    /// <summary>
    /// 是否启用水印
    /// </summary>
    public string Sys_WarterMark { get; set; }
    /// <summary>
    /// 文件存储类型
    /// </summary>
    public string File_Save_Type { get; set; }
    /// <summary>
    /// 文件存储地址
    /// </summary>
    public string File_Save_Path { get; set; }
}
